Hit List Sorting Values
You specify a
hit list sorting value
to determine the kind of sorting (relative to the pick origin) that is to be done on the hit list.
typedef enum TQ3PickSort {
kQ3PickSortNone,
kQ3PickSortNearToFar,
kQ3PickSortFarToNear
} TQ3PickSort;
Constant descriptions
-
kQ3PickSortNone
-
No sorting is to be done on the hit list. There is no meaning to the order of hits in the list.
-
kQ3PickSortNearToFar
-
The hit list is sorted according to increasing distance from the origin of the pick point. Objects nearer to the origin are returned before objects farther away.
-
kQ3PickSortFarToNear
-
The hit list is sorted according to decreasing distance from the origin of the pick point. Objects farther away from the origin are returned before objects nearer to it.
© 1997 Apple Computer, Inc.Previous | QD3D Book | Overview | Chapter Contents | Next